home *** CD-ROM | disk | FTP | other *** search
Java Source | 1995-12-31 | 444 b | 19 lines |
- package kids;
-
- import brothers.Dad;
-
- // --- The Son Class - Son is a subclass of Dad --- //
- public class Son extends Dad {
-
- public Son() {
- // sportscar = true; // ERROR! Dad only!
- // fishing_boat = true; // ERROR! Dad and UncleFrank only!
- golf_clubs = true; // Ok, but be careful
- familycar = true; // Son can borrow
- lawnmower = true; // Yeah, sure anybody
-
- pubprot=true;
- }
- }
-
-